package com.ruoyi.community.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 儿童信息对象 heart_children_info
 * 
 * @author Gaotian
 * @date 2021-12-16
 */
public class HeartChildrenInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 儿童id */
    private Long childid;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 儿童姓名 */
    @Excel(name = "儿童姓名")
    private String childname;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 性别 */
    @Excel(name = "性别")
    private Integer gender;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;
    /** 电话号码 */
    @Excel(name = "电话号码")
    private String phone;

    /** 家庭地址 */
    @Excel(name = "家庭地址")
    private String address;

    /** 家属手机号 */
    @Excel(name = "家属手机号")
    private String familyphone;

    /** $column.columnComment */
    @Excel(name = "家属手机号")
    private Long communityid;

    public void setChildid(Long childid) 
    {
        this.childid = childid;
    }

    public Long getChildid() 
    {
        return childid;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setChildname(String childname) 
    {
        this.childname = childname;
    }

    public String getChildname() 
    {
        return childname;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setGender(Integer gender) 
    {
        this.gender = gender;
    }

    public Integer getGender() 
    {
        return gender;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setFamilyphone(String familyphone) 
    {
        this.familyphone = familyphone;
    }

    public String getFamilyphone() 
    {
        return familyphone;
    }
    public void setCommunityid(Long communityid) 
    {
        this.communityid = communityid;
    }

    public Long getCommunityid() 
    {
        return communityid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public HeartChildrenInfo() {
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("childid", getChildid())
            .append("userId", getUserId())
            .append("childname", getChildname())
            .append("age", getAge())
            .append("gender", getGender())
            .append("phone", getPhone())
            .append("createtime", getCreatetime())
            .append("address", getAddress())
            .append("familyphone", getFamilyphone())
            .append("communityid", getCommunityid())
            .toString();
    }
}
